/*
 * @Author: your name
 * @Date: 2020-07-26 22:07:26
 * @LastEditTime: 2020-07-27 22:13:00
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \ts\react-router-app\src\pages\index_page.js
 */
import {
  BrowserRouter as Router,
  Route,
  Link,
  Switch,
  Redirect
} from 'react-router-dom'

 import React, { Component } from 'react';

 class IndexPage extends Component {
   constructor(props) {
     super(props);
     this.state = {  };
   }
   render() {
     return (
       <>
       <div className="pageContent">首页</div>
       <ul className="nav">
        <li>
          <Link to="/">首页</Link>
        </li>
        <li>
          <Link to="/list">列表</Link>
        </li>
       </ul>
       </>
     );
   }
 }

 export default IndexPage;
